<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <style>
      .container {
        background-color: #f1f1f1;
        font-size: 15px;
        line-height: 2;
      }

      li {
        background-color: #f1f1f1;
        cursor: pointer;
      }
      li:hover {
        background-color: #412eec;
        color: white;
      }

      .bfc {
        overflow: hidden;
        /* 触发元素 BFC */
      }
    </style>
  </head>

  <body>
    <div id="divParent">
      <ul></ul>
    </div>
  </body>
  <script src="index.js" type="module"></script>
</html>
